package com.github.linmt.dbdoc4j.annotations;

import com.github.linmt.dbdoc4j.autoconfigure.Dbdoc4jPropertiesAutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * User: Linmt
 * Date: 2022/12/1
 * Time: 21:49
 * Description: No Description
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(Dbdoc4jPropertiesAutoConfiguration.class)
//当Spring为web服务时，才使注解的类生效；通常是配置类;
@ConditionalOnWebApplication
public @interface EnableDbdoc4j {
}
